﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace TileSetRender
{
    public class TileSetDataFile
    {
        byte[,] tileData = new byte[800, 8];

        public byte[,] TileData
        {
            get { return tileData; }
        }

        public TileSetDataFile(string filename)
        {
            FileStream fs = File.Open(filename,FileMode.Open);
            BinaryReader br = new BinaryReader(fs);

            for (int j = 0; j < 8; j++)
            {
                for (int i = 0; i < 800; i++)
                {
                
                    tileData[i, j] = br.ReadByte();
                }
            }

            br.Close();
            fs.Close();


        }
    }
}
